package com.whc.gulimall.product.feign;

import com.whc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author angaoen
 */
@FeignClient("gulimall-seckill")
public interface SeckillFeignService {

    /**
     * 通过skuId获取到sku在redis秒杀中的信息
     *
     * @param skuId skuId
     * @return sku在redis秒杀中的信息
     */
    @GetMapping("/seckill/{skuId}")
    R getSkuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
